|
RtLockProcess locks certain sections of a process' virtual address space into physical memory.
Syntax
BOOL RtLockProcess(
ULONG Section
);
Parameters
Section
A number specifying which sections to lock. Currently, RT_PLOCK_ALL is supported. This locks down all pageable process sections.
Return Values
TRUE if the function succeeds, FALSE if invalid parameters are specified
Remarks
RtLockProcess locks down all specified eligible committed memory sections of the process, so that they are not paged out, and so that no page faults occur during execution.
IMPORTANT! Using this function can have a significant negative impact on system performance.
Since all RTSS processes are always locked, this function has no effect in the RTSS environment.
Requirements
Header | Rtapi.h |
Library | rtapi_w32.lib (Windows), Rtx_Rtss.lib (RTSS) |
See Also: